<%--
    Document   : cadastrarUsuario
    Created on : 27/11/2010, 14:47:33
    Author     : Ramayane
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" language="java"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="../css/ebeformatacao.css" />
        <title>Cadastre-se</title>
    </head>
    <body class="fundo">
        <f:view locale="#{idioma.atual}">

            <f:subview id="cabecalho">
                <jsp:include page="cabecalho.jsp" />
            </f:subview>

            <div id="conteudo">
            <h:form id="buscarVaga">
                <div align="center"><br/><br/>

                    <h:panelGrid columns="2" >
                        <f:facet name="header">
                            <h:panelGrid columns="1">
                                <h:outputText value="#{msgs['buscar.informe']}" styleClass="titulos" />
                            </h:panelGrid>
                        </f:facet>

                        <h:outputText value="#{msgs['buscar.estado']}: " />
                        <h:selectOneMenu id="estados" value="#{controlVaga.estadoEscolhido}"
                                         onchange="this.form.submit()">
                            <f:selectItems value="#{controlVaga.estadosExistentes}"
                                           />
                        </h:selectOneMenu>


                        <h:outputText value="#{msgs['buscar.cidade']}: " />
                        <h:selectOneMenu id="cidades" value="#{controlVaga.cidadeEscolhida}">
                            <f:selectItems value="#{controlVaga.cidadesExistentes}" />
                        </h:selectOneMenu>

                        <h:outputText value="#{msgs['buscar.funcao']}: " />
                        <h:selectOneMenu id="funcoes" value="#{controlVaga.funcoesEscolhida}">
                            <f:selectItems value="#{controlVaga.funcoesCadastradas}" />
                        </h:selectOneMenu>

                        <h:outputText value="<br> " escape="false" />
                        <h:outputText value="<br> " escape="false" />

                    </h:panelGrid>

                    <h:panelGrid columns="2" >
                        <h:outputText value="&nbsp;&nbsp;&nbsp;&nbsp;" escape="false" />
                        <h:commandButton value="#{msgs['buscar.pesquisar']}" action="#{controlVaga.pesquisar}" />
                    </h:panelGrid>                    
                </div>
           
            </h:form>

            </div>
               <f:subview id="rodape">
                <jsp:include page="rodape.jsp" />
            </f:subview>

        </f:view>
    </body>
</html>
